﻿@model eduscrum.Models.LogOnModel

@{
    ViewBag.Title = "LogOn";
    Layout = "~/Views/Shared/M/_Layout.cshtml";
}

<div data-theme="b">

<h2>Log On</h2>
<p>
    Please enter your user name and password.  <a data-role="button" class="no-Ajax" data-transition="pop"  style="float:right" href="@Url.Action("Register", "Account")">Register</a> if you don't have an account.
</p>

@Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")
<div data-role="fieldcontain">
@using (Html.BeginForm()) {
 
        <fieldset data-role="controlgroup">
            <legend>Account Information</legend>
    
           
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName, new { required="required",placeHolder="User Name"})
                @Html.ValidationMessageFor(m => m.UserName)
          <br>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password, new { required = "required", placeHolder = "Password" })
                @Html.ValidationMessageFor(m => m.Password)

                <br>
               
           @Html.CheckBoxFor(m=>m.RememberMe)
           @Html.LabelFor(m=>m.RememberMe)
          <input type="submit" value="Log On" />
        </fieldset>
   
		
 
   
}
</div>

</div>
@section scripts
{
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}
